 <{extends file="<{$tempdir}>/public/wxsite.html"}>  
<{block name=extendcss}> 
 <link rel="stylesheet"  href="<{$siteurl}>/templates/<{$tempdir}>/public/wxsite/css/gift.css">
<{/block}>
 <{block name=extendjs}> 
  <script src="<{$siteurl}>/templates/<{$tempdir}>/public/wxsite/js/template.min.js"></script>    
<{/block}>
<{block name=myScrolljs}>
<script> 
		var myScroll;
function loaded() {
	myScroll = new iScroll('wrapper', {
		useTransform: false,
		onBeforeScrollStart: function (e) {
			var target = e.target;
			while (target.nodeType != 1) target = target.parentNode;

			if (target.tagName != 'SELECT' && target.tagName != 'INPUT' && target.tagName != 'TEXTAREA')
				e.preventDefault();
		}
	});
}
document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false); 
document.addEventListener('DOMContentLoaded', function () { setTimeout(loaded, 200); }, false);
</script>
<script>
 	$(function(){
 	$('.intexbg1').click(function(){ 
 		var checkuname = $('#logEmailOrPhone').val();
 		if(checkuname != ''){
 		  
  	 	$('#loading').toggle(); 
  	  	var info = {'uname':$('#logEmailOrPhone').val(),'pwd':$('#logPassword').val(),'logintype':'html5'}; 
  	 	  var  url = siteurl+'/index.php?ctrl=member&action=login&datatype=json&random=@random@' 
  	 	   $.ajax({ 
             url: url.replace('@random@', 1+Math.round(Math.random()*1000)), 
            dataType: "json", 
            data:info, 
            success:function(content) {  
            	$('#loading').toggle(); 
            	if(content.msg ==  false){
					 var goPrevUrl = $.cookie('wxCurUrl');
 					 if( goPrevUrl != null && goPrevUrl != '' && goPrevUrl != undefined ){
						window.location.href= goPrevUrl;
					 }else{
						window.location.href= siteurl+'/index.php?ctrl=wxsite&action=member';
					}
            	}else{ 
            	   Tmsg(content.msg);
              }
            	
            }, 
            error:function(){ 
            	$('#loading').toggle();

            } 
         });  
    }else{
    	Tmsg('用户帐号不能为空');
    }
		  
	 }); 
	});

 </script>
<{/block}>
 <{block name=hearnav}>
<div class="toptitCon">
 <div class="toptitBox">
  <div class="toptitL"><i></i></div>
  <div class="toptitC"><h3>登录</h3></div>
 </div>
</div>
<{/block}>
<{block name=sitetitle}><{$sitename}><{/block}>
<{block name=blockcontent}> 
 <div id="wrapper" style="top:40px;">
	<div id="scroller">
		
 
 

<!--登录-->
<div class="signinregistertit">
 <ul>
  <li   class="ainregaA">账号登录</li>
  <li   onclick="dolink('<{ofunc type=url link="/wxsite/reg"}>');"  >账号注册</li>
 </ul>
</div>
<!--输入用户名密码-->
<div class="signininput">
 <ul>
  <li><i class="signinuser"></i><input type="text"  id="logEmailOrPhone"  placeholder="请输入用户名"></li>
  <li><i class="signinpassw"></i><input type="password" id="logPassword" placeholder="请输入密码"></li>
 </ul>
</div>
<div class="intexchabutt" ><input type="button" value="登录" class="intexbg1"><span  onclick="dolink('<{ofunc type=url link="/wxsite/forpwd"}>');"  class="sinzhmm">找回密码</span></div>




		 <div style="height:10px;"></div>
	</div>
</div>

 
<{/block}>